<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="pushStationForm">
                        <input type="hidden" name="pushStationId" th:value="${pushStation.pushStationId}">
                        <input type="hidden" name="isPush">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">站点名称：</label>
                            <div class="col-sm-8">
                                <input id="pushStationName" name="pushStationName"
                                       class="form-control" type="text" th:value="${pushStation.pushStationName}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">推送地址：</label>
                            <div class="col-sm-8">
                                <input id="pushStationUrl" name="pushStationUrl"
                                       class="form-control" type="text" th:value="${pushStation.pushStationUrl}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">ftp地址：</label>
                            <div class="col-sm-8">
                                <input id="pushFtpAdress" name="pushFtpAdress"
                                       class="form-control" type="text" th:value="${pushStation.pushFtpAdress}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">ftp端口：</label>
                            <div class="col-sm-8">
                                <input id="pushFtpPort" name="pushFtpPort"
                                       class="form-control" type="text" th:value="${pushStation.pushFtpPort}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">ftp名称：</label>
                            <div class="col-sm-8">
                                <input id="pushFtpUser" name="pushFtpUser"
                                       class="form-control" type="text" th:value="${pushStation.pushFtpUser}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">ftp密码：</label>
                            <div class="col-sm-8">
                                <input id="pushFtpPassword" name="pushFtpPassword"
                                       class="form-control" type="text" th:value="${pushStation.pushFtpPassword}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片前缀：</label>
                            <div class="col-sm-8">
                                <input id="pushImagePrefix" name="pushImagePrefix"
                                       class="form-control" type="text" th:value="${pushStation.pushImagePrefix}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片尺寸：</label>
                            <div class="col-sm-8">
                                <input id="pictureSize" name="pictureSize" th:value="${pushStation.pictureSize}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">缩略图尺寸：</label>
                            <div class="col-sm-8">
                                <input id="thumbSize" name="thumbSize" th:value="${pushStation.thumbSize}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">开启推送：</label>
                            <div class="onoffswitch col-sm-8">
                                <input type="checkbox"  onclick="isCheck()" th:value="${pushStation.isPush}" class="onoffswitch-checkbox" id="myonoffswitch" th:checked="${pushStation.isPush eq 1?'':checked}" >
                                <label class="onoffswitch-label" for="myonoffswitch">
                                    <span class="onoffswitch-inner"></span>
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/collection/station/push/edit.js">
</script>
</body>
</html>
